import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class FileInput {
    public static void main(String[] args) throws IOException {
        FileInputStream file = new FileInputStream("D:\\a\\a.txt");
        int i;
        while ((i=file.read())!=-1){
            System.out.println(i+"---"+(char)i);
        }
        file.close();

    }
}
